package cn.cq.admin.entity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 系统资源
 * @TableName t_resource
 */
@TableName(value ="t_resource")
@Data
public class TResource extends BaseModel implements Serializable {
    /**
     * 父节点Id
     */
    @TableField(value = "pid")
    private Long pid;

    /**
     * 资源名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 资源图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 前端路由
     */
    @TableField(value = "path")
    private String path;

    /**
     * 排序码
     */
    @TableField(value = "sort_code")
    private String sortCode;

    /**
     * 资源编码
     */
    @TableField(value = "source_key")
    private String sourceKey;

    /**
     * 资源类型，0 - 页面，1 - 按钮
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 状态，0 - 禁用 ， 1 - 启用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 备注
     */
    @TableField(value = "description")
    private String description;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
